package com.qfedu.aunt.commons.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工作类型表
 * </p>
 *
 * @author xiaobobo
 * @since 2022-10-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_work_type")
@ApiModel(value="WorkType对象", description="工作类型表")
public class WorkType implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "类型id")
    @TableId(value = "type_id", type = IdType.ID_WORKER_STR)
    private String typeId;

    @ApiModelProperty(value = "类型图片")
    private String typeImages;

    @ApiModelProperty(value = "类型名字")
    private String typeName;

    @ApiModelProperty(value = "父亲id")
    private String parentId;

    @ApiModelProperty(value = "类型描述")
    private String typeDescribe;

    @ApiModelProperty(value = "级别")
    private Integer level;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Integer deleted;


}
